<template>
<view class="page-main" :style="{'background-color': props.bgColor}">
  <slot></slot>
</view>
</template>

<script setup name="x-main">
import {GlobalConfig, Helper} from 'core';
const {appConfig,statusBarHeight,top,bottom,windowWidth,windowHeight} = storeToRefs(GlobalConfig());
const props = defineProps({
  bgColor:{
    type: String,
    default: "#f5f5f5"
  },

})
</script>

<style scoped lang="less">
.page-main {
  overflow-y: auto;
}
</style>
